package test;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Properties;

/**
 * @author oldliu
 * @since 1.0
 */
public class ProperTEst {
    public static void main(String[] args) throws  Exception {
        Properties p=new Properties();
        p.load(ProperTEst.class.getClassLoader().getResourceAsStream("jdbc.properties"));
//        p.load(new FileInputStream("E:\\java_workspace\\IdeaProjects\\kgc76\\jdbc\\src\\jdbc.properties"));
        //System.out.println(p);
        System.out.println(p.getProperty("driver"));
    }
}
